﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Threading;
using System.Net;
using System.Text;
using System.IO;

namespace BackEnd
{
    public partial class Alchemy : System.Web.UI.Page
    {       
        protected void Page_Load(object sender, EventArgs e)
        {            
        }

        protected void bComputeAlchemyValue_Click(object sender, EventArgs e)
        {            
            var input = tbIputText.Text;
            var value = Core.Rules.PositiveWords.ExecuteAlchemyAPI(input);            
            lAlchemyValue.Text = value.ToString(System.Globalization.CultureInfo.InvariantCulture);           
        }

        protected void bReset_Click(object sender, EventArgs e)
        {
            lAlchemyValue.Text = "NULL";
            tbIputText.Text = "";
        }        
    }
}